Blitz_bass_studio help functions : [subject] (location)


[WINDOWS ->USER32/KERNEL32.DLL] (bass.decls)


=====================================================================================

- BASS_HWND() = use this (if you dont have an other lib for this)  to init bass. 
	Or use "0" for default (see demo_start)

- BASS_RtlMoveMemory1%(Destination*,Source,Length) = we need that for some help functions

- BASS_RtlMoveMemory2%(Destination,Source*,Length) = we need that for some help functions

=====================================================================================


[MATH STUFF] (bass.bb)


=====================================================================================

- BASS_MakeLong(val1%,val2%) =Returns a lo/hi word for ex. BASS_ChannelSetPosition with modfiles.

- BASS_MakeHiWord(val%) = Returns a HiWord from a Long

- BASS_MakeLoWord(val%) = Returns a LoWord from a Long

=====================================================================================


[BASS.DLL] (bass.bb)


=== ErrorMessage ======================================================================

- BASS_GetErrorString$ () Returns an error string 
	Example:
	musik  = BASS_MusicLoad(0,"JACKDANC.MOD",0,0,0,0) 
	error$ = BASS_GerErrorString ()
	Print error ; for example BASS_ERROR_FILEOPEN if the file is not present

=== Device name ======================================================================

- BASS_GetDeviceDescriptionString$(device%)
	Returns a string with the device name
	Example: mydevice$ = BASS_GetDeviceDescriptionString$(1)

=== Device Count =====================================================================

- BASS_GetDeviceCount()
	Returns the number of devices found (soft/hard)

=== Record device name ================================================================

- BASS_RecordGetDeviceDescriptionString$(device%)
	Returns a string with the device name
	Example: mydevice$ = BASS_RecordGetDeviceDescriptionString$(0)

=== Record device count ==============================================================

- BASS_RecordGetDeviceCount()
	Returns the number ob record devices

=== Record simple ====================================================================

- BASS_RecordStartSimple%(freq%,chans%,flags%) Returns the new recording handle 
	The same as BASS_RecordStart but no callbacks

===Input name========================================================================

- BASS_RecordGetInputNameString$(device%)
	Returns the description of a record channel.
	Example: info = BASS_RecordGetInputNameString$(0)
	Info will be the description of the first recording device f.ex "Stereo Mix"

=== DX8 SFX ==========================================================================

- BASS_FXSetChorus%(HFX,fWetDryMix#,fDepth#,fFeedback#,fFrequency#,lWaveform%,fDelay#,lPhase%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetCompressor%(HFX,fGain#,fAttack#,fRelease#,fThreshold#,fRatio#,fPredelay#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetDistortion%(HFX,fGain#,fEdge#,fPostEQCenterFrequency#,fPostEQBandwidth#,fPreLowpassCutoff#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetEcho%(HFX,fWetDryMix#,fFeedback#,fLeftDelay#,fRightDelay#,lPanDelay%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetFlanger%(HFX,fWetDryMix#,fDepth#,fFeedback#,fFrequency#,lWaveform%,fDelay#,lPhase%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetGargle%(HFX,dwRateHz%,dwWaveShape%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetParamEQ(HFX,fCenter#,fBandwidth#,fGain#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetReverb%(HFX,fInGain#,fReverbMix#,fReverbTime#,fHighFreqRTRatio#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetI3DL2Reverb%(HFX,lRoom%,lRoomHF%,flRoomRolloffFactor#,flDecayTime#,flDecayHFRatio#, lReflections%,flReflectionsDelay#,lReverb%,flReverbDelay#, flDiffusion#,flDensity#,flHFReference#)  Returns TRUE or FALSE (1/0)
	
- Bass_FXGetValue#(HFX,effect%,number%) Returns a float with the asked value :
	
	Example: If you have an echo effect like  - BASS_FXSetEcho(myecho,50,0,50,30,BASS_FALSE) 
	Use : Bass_FXGetValue(myecho,BASS_ECHO,3) to get the value of the left Delay, so 3 for the 3te effect value.
	Bass_FXGetValue(myChorus,BASS_CHORUS,4) returns the frequency of the effect myChorus.
	Effect flags are the same as for BASS_ChannelSetFX

=== Load from Mem ===================================================================

- BASS_SampleLoadMem%(mem%,file*,offset%,length%,max%,flags%) 
	Use this as  BASS_SampleLoad to load from memory.
	Returns TRUE or FALSE (1/0)
 
====================================================================================

- BASS_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%)
	Use this as  BASS_StreamCreateFile to load from memory.
	Returns TRUE or FALSE (1/0)

====================================================================================

- BASS_MusicLoadMem%(mem%,file*,offset%,length%,flags%,freq%)
	Use this as  BASS_MusicLoad to load from memory.
	Returns TRUE or FALSE (1/0)

=== Mod Commands ===================================================================

- BASS_MakeMusicPos (order%,row%)
	To use with BASS_ChannelSetPosition

=== 3D Commands ====================================================================

For attributes see --> BASS_Set3DPosition

- BASS_Set3DPositionPos(x#,y#,z#) Returns TRUE or FALSE (1/0)

- BASS_Set3DPositionVel(x#,y#,z#) Returns TRUE or FALSE (1/0)   

- BASS_Set3DPositionFront(x#,y#,z#) Returns TRUE or FALSE (1/0)

- BASS_Set3DPositionTop(x#,y#,z#) Returns TRUE or FALSE (1/0)
	
=== Beep & Chiptunes ===============================================================

- BASS_CreateBeep%(art% = 1 ,hz% = 900,time% = 100 ,freq% = 44100 , chans% = 1, max% = 1, flags% = 0, onlynew% = 0)
	art = waveform defined in function (see bass.bb) 
	hz = frequency 
	time = duration in millisecs (1000 = 1 second) 
	freq = samplerate
	chans = channels (1 = mono/2 = stereo)
	max = maximum number of simultaneous playbacks
	flags = see "BASS_SampleCreate"
	onlynew (bool) = Do not recycle/override one of the sample's existing channels? 

Returns a new channel handle ready to play. See demo_beep.bb

====================================================================================


[BASS_FLAC.DLL] (bass_flac.bb)


====================================================================================

BASS_FLAC_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%)  Returns TRUE or FALSE (1/0)
	Use this as  BASS_FLAC_StreamCreateFile to load from memory. 

====================================================================================


[BASS_MIDI.DLL] (bass_midi.bb)


====================================================================================

- BASS_MIDI_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%,freq%)  Returns TRUE or FALSE (1/0)
	Use this as BASS_MIDI_StreamCreateFile to load from mem

====================================================================================


[BASS_WMA.DLL] (bass_wma.bb)


============================================================================================

- BASS_WMA_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%) = load from mem  Returns TRUE or FALSE (1/0)

- BASS_WMA_StreamCreateFileAuthMem%(mem%,file*,offset%,lenght%,flags%,user*,pass*) = load from mem  Returns TRUE or FALSE (1/0)

============================================================================================


[BASS_FX.DLL] (bass_fx.bb)


============================================================================================

BASS_FX_DSP_Echo%(han_dle,level#,elay%)
BASS_FX_DSP_Flanger%(han_dle,wetdry#,speed#,channel%)
BASS_FX_DSP_Volume%(han_dle,channel%,volume#)
BASS_FX_DSP_Equalizer%(han_dle,band%,freq%,bandw#,q#,center#,gain#,channel%)
BASS_FX_DSP_Reverb%(han_dle,level#,elay%)
BASS_FX_DSP_Lowpass%(han_dle,freq%,reson#,cutoff#,channel%)
BASS_FX_DSP_Damp%(han_dle,target#,quit#,rate#,gain#,elay#,channel%)
BASS_FX_DSP_AutoWah%(han_dle,drymix#,wetmix#,feedback#,rate#,range#,freq#,channel%)
BASS_FX_DSP_Echo2%(han_dle,drymix#,wetmix#,feedback#,elay#,channel%)
BASS_FX_DSP_Phaser%(han_dle,drymix#,wetmix#,feedback#,rate#,range#,freq#,channel%)
BASS_FX_DSP_Echo3%(han_dle,drymix#,wetmix#,elay#,channel%)
BASS_FX_DSP_Chorus%(han_dle,drymix#,wetmix#,feedback#,minsweep#,maxsweep#,rate#,channel%)
BASS_FX_DSP_APF(han_dle,gain#,elay#,channel%)
BASS_FX_DSP_Compressor(han_dle,treshold#,attack#,release#,channel%)
BASS_FX_DSP_Distortion(han_dle,drive#,drymix#,wetmix#,feetback#,volume#,channel%)

	All = Returns TRUE or FALSE (1/0)

Tip! This commands you can use in realtime! They are better then the Dx8 commands but need (a little) more power.
(We talk about 0.x% an a 2ghz CPU ^^)
On Vista Dx8(9) is emulated by software, so i recommand to use this onces for better quality.
See demo_plugin.bb

===========================================================================================








